<template>
	<div>
		<el-carousel :interval="4000" :autoplay="false" type="card" style="width: 304px;background-color: #ffaa7f;"
			indicator-position="none" :arrow="nerver" height="62px">
			<el-carousel-item style="width: 50px;height: 50px;margin-left: 50px;margin-top: 5px;"
				v-for="item in imgList" :key="item">
				<img class="goodImg" :src="require('@/assets/equipments/'+item.url)">
			</el-carousel-item>
		</el-carousel>
		<template>
			<el-input-number v-model="num"  :min="1" :max="10" label="描述文字"></el-input-number>
		</template>
	</div>
</template>

<script scoped>
	export default {
		data() {
			return {
				num: 1,
				url: 'e001.jpg',
				imgList: [{
					url: 'e001.jpg',
				}, {
					url: 'e002.jpg',
				}, {
					url: 'e003.jpg',
				}, ],
			}
		},
		created() {
			console.log(this.imgList)
			console.log("require('@/assets/equipments/'+this.url)")
		}
	}
</script>

<style>
	.el-input-number {
		.el-input {
			margin: 0 auto;
		}
	}

	.el-carousel__item {
		all: initial;
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.goodImg {
		width: 100%;
		height: 100%;
		/* background-color: #5500ff; */
	}

	.el-carousel__item:nth-child(2n) {
		background-color: #99a9bf;
	}

	.el-carousel__item:nth-child(2n+1) {
		background-color: #d3dce6;
	}

	.el-carousel__arrow {
		display: none;
	}
</style>